package wh.jf.factory;

public class ColorFactory  extends AbstractFactory{
    @Override
    public  Color getColor(ColorType type){
       Color color = null;
       switch (type) {
           case RED:
               color = new Red();
               break;
           case BLUE:
               color = new Blue();
               break;
           default:
               color = new Green();
       }
       return color;
    }

    @Override
    public Shape getShape(ShapType type) {
        return null;
    }
}
